package com.minshenglife.zanzan.dao.power;


import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.minshenglife.commons.dal.EntityDao;
import com.minshenglife.commons.dal.MyBatisRepository;
import com.minshenglife.zanzan.entity.power.GroupPower;
import com.minshenglife.zanzan.result.GroupPowerResult;

/**
 * 人员角色/职位
 * @author wangpeng
 *
 */
@Repository
@MyBatisRepository
public interface GroupPowerDao extends EntityDao<GroupPower> {

	List<GroupPowerResult> findAllGroupPower();
	
	void deleteViewEmpId(String viewEmpId);
	
	List<GroupPowerResult> findGroupPowerByViewEmpId(String viewEmpId);
	
	List<GroupPower> findGroupPowerByViewEmpIdAndViewType(Map<String, String> map);
	
	/**
	 * 根据要查看的是总分公司以及要查看的级别，查询被审阅的人
	 * @param map
	 * @return
	 */
	List<GroupPower> findGroupPowerByViewEmpIdAndViewTypeAndPostId(Map<String, String> map);
}
